﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="setup.aspx.cs" Inherits="setup" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <link href="<%=Page.ResolveUrl("~/") %>css/style.css" rel="stylesheet" type="text/css" />
</head>

<script language="javascript" type="text/javascript">
<!--

function allowActiveX(){
    var WshShell=new ActiveXObject("WScript.Shell"); 
    //添加信任站点ip 

    WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\Range100\\",""); 
    WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\Range100\\http","2","REG_DWORD"); 
    WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\Range100\\:Range","192.168.23.1"); 
    WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\Range101\\",""); 
    WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\Range101\\http","2","REG_DWORD"); 
    WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Ranges\\Range101\\:Range","192.168.23.1"); 
    //修改IE ActiveX安全设置 

    WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\1001","0","REG_DWORD"); 
    WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\1004","0","REG_DWORD"); 
    WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\1200","0","REG_DWORD"); 
    WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\1201","0","REG_DWORD"); 
    WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\1405","0","REG_DWORD"); 
    WshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\Zones\\3\\2201","0","REG_DWORD"); 
    //禁用xinxp弹出窗口阻止程序 

    WshShell.RegWrite("HKCU\\Software\\Microsoft\\Internet Explorer\\New Windows\\PopupMgr","no"); 

    alert("active控件安全设置，弹出窗口设置，信任站点设置成功"); 
}
-->
</script>

<body>
    <form id="form1" runat="server">
        
        <br />
        <table width="96%" border="0" cellpadding="1" cellspacing="1" class="tableHome" align="center">
            <tr>
                <td colspan="4" class="table_title">
                    基本设定</td>
            </tr>
            <tr>
                <td width="50%" align="right" class="table_label_head">
                    允许ActiveX执行：
                </td>
                <td>
                    <input type="button" value="允许" name="AllowActiveX" onclick="allowActiveX();" class="button_sky"/>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
